package com.my;

import com.my.bean.Hello;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author: marshal
 * @date: 2023-05-15 15:21
 */
public class HelloApp {
    public static void main(String[] args) {
        ApplicationContext context = new AnnotationConfigApplicationContext("com.my");
        Hello hello = context.getBean(Hello.class);
        hello.setMessage("annotation");
        hello.printMessage();
    }
}
